#include<iostream>

//c++风格的不定参函数的使用
void xprintf()
{
    std::cout<<std::endl;
}

template<typename T,typename ...Args>
void xprintf(const T &val,Args && ...args)
{
    std::cout<<val;
    if((sizeof ...(args))>0)
    {
        xprintf(std::forward<Args>(args)...);
    }
    else
    {
        xprintf();
    }

}
int main()
{
    xprintf("zj");
    xprintf("zj","l");
    xprintf("zj","l",123);
    return 0;
}